package com.ai.tools;

import java.time.LocalDateTime;

import org.springframework.ai.tool.annotation.Tool;
import org.springframework.stereotype.Component;

@Component
public class DateTimeTools {

    @Tool(description = "当前日期和时间")
    String currentTime() {
        return LocalDateTime.now().toString();
    }

}
